﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace Automata.examen2
{
    public partial class Matrices : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.ClientScript.IsClientScriptIncludeRegistered("MyScript"))
            {
                Page.ClientScript.RegisterClientScriptInclude("MyScript", "../functions.js");
            }         
        }

        protected void btnEvaluar_Click(object sender, EventArgs e)
        {            
            if (!fupMatriz.HasFile)
                return;

            MultiplicacionMatrices m = new MultiplicacionMatrices();

            resultLabel.Text = m.multiplica(fupMatriz.FileContent);
        }
    }
}